//
//  ViewController.m
//  DropDownMenuDome
//
//  Created by Bc_Ltf on 15/1/19.
//  Copyright (c) 2015年 Bc_Ltf. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initView];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

#pragma mark- init
-(void)initView
{
    self.title=@"点击下拉菜单";
    NSArray *dataArray=@[
                                @[
                                    @"附近",
                                    @[@"附近",@"上海",@"北京",@"同城"],
                                    @[
                                        @[@"附近",@"500米",@"1000米",@"2000米",@"5000米"],
                                        @[@"徐家汇",@"人民广场",@"陆家嘴"],
                                        @[@"三里屯",@"亚运村",@"朝阳公园"],
                                        @[@"同城"],
                                    ],
                                ],
                                @[
                                    @"分类",
                                    @[@"美食",@"电影"],
                                    @[
                                        @[@"美食",@"麻辣烫",@"披萨"],
                                        @[@"电影",@"成龙",@"李连杰"],
                                    ],
                                ],
                                @[
                                    @"动画片",
                                    @[@"日本",@"美国"],
                                    @[
                                        @[@"七龙珠",@"灌篮高手",@"柯南"],
                                        @[@"高飞",@"唐老鸭米老鼠",@"绿巨人"],
                                        ],
                                    ],
                            ];
    DropDownClass *menu=[[DropDownClass alloc]initWithOrigin:CGPointMake(0, 64) andHeight:40 andDataArray:dataArray];
    [self.view addSubview:menu];

}

@end
